<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript" src="<%=basePath%>js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/jquery.cycle.all.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	   $('#pics').cycle({ 
		            fx:    'scrollRight' 
		           });
	   $("#info").hide();
	   var url = window.location.href; 
	   var array= url.split("/");
	   var len = array.length;
	   if(array[len-1]!="login")
		   {
		   $("#info").show();
		   }
	
   });
</script>
<div class='container'>
  <div id="login" style='height:400px;background-color: #fff;'>
	<div class="span6 left" id="pics" style='height:;'>
	   <img alt="" src="<%=basePath%>images/1.jpg" />
	   <img alt="" src="<%=basePath%>images/2.png" />
	   <img alt="" src="<%=basePath%>images/3.jpg" />
	</div>
	<div class="span5 right">
	   <c:if test="${notlogin }">
	     <div class="info" id='info'>请先登录！！！</div>
	   </c:if>
	   <c:if test="${missPass }">
	      <div class="info">用户名或密码出错！</div>
	   </c:if>
		<form action="<%=basePath%>login"
			method="post" class="form-horizontal" id="loginForm">
			<div class="control-group">
				<label class="control-label" for="username">用户名:</label>
				<div class="controls">
					<input type="text" id="mail" style='height:30px;' name="username" placeholder="用户名">
					<span></span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="inputPassword">密码:</label>
				<div class="controls">
					<input type="password" style='height:30px;'  id="inputPassword" name="password"
						placeholder="密码">
				</div>
			</div>

			<div class="controls" style='margin-left:170px;'><input class="submit" type="submit" value="登录" />
		    </div>
		</form>
		</div>
</div>
</div>